<link rel="stylesheet" type="text/css" href="<?=$gs_jspath?>ddsmoothmenu-v.css" />
<script type="text/javascript" src="<?=$gs_jspath?>ddsmoothmenu.js"></script>
<div class="module_small module_small_menu_product" style="height: auto">
	<div class="title">
    	<div class="fl left_icon"></div>
        <div class="fl"><span lang="<?=$array_lang[$lang_id][0];?>"><?=tdt('Danh_muc_tin_tuc')?></span></div>
        <div class="fr right_icon"></div>
	</div>
    <div class="content menu_product module_larger" style="padding-top: 5px;margin-left: -1px;">
<?
$db_cat = new db_query("SELECT * FROM categories_multi WHERE cat_type='news' AND cat_parent_id = 0 AND cat_active = 1 AND lang_id = " . $lang_id . " ORDER BY cat_order ASC,cat_name ASC");
if (mysql_num_rows($db_cat->result) > 0)
{
?>
        <div id="smoothmenu2" class="ddsmoothmenu-v" style="height: 300px;">
	<ul>
	<?
	while ($cat = mysql_fetch_array($db_cat->result))
	{
	?>
		<li><a href="<?=generate_type_url($cat['cat_type'], $cat['cat_id'],$cat['cat_name'])?>"><?=$cat['cat_name']?></a>
		<?
		$db_child_cat = new db_query('SELECT * FROM categories_multi WHERE cat_parent_id = ' . $cat['cat_id'] . ' AND cat_active = 1 AND lang_id = ' . $lang_id . ' ORDER BY cat_order ASC');
		if (mysql_num_rows($db_child_cat->result) > 0)
		{
		?>
		<ul>
			<?
			while ($child = mysql_fetch_array($db_child_cat->result))
			{
			?>
			<li><a href="<?=generate_type_url($child['cat_type'], $child['cat_id'],$child['cat_name'])?>"><span lang="<?=$array_lang[$lang_id][0]?>"><?=$child['cat_name']?></span></a></li>
			<?
			}
			?>
		</ul>
		<?
		}
		unset($db_child_cat);
		?>
		</li>
	<?
	}
	?>
</ul>
</div>
    <div style="clear: both"></div>
</div>
    </div>
<div style="clear: both"></div>
<div class="module_bottom_small module_bottom_menu_product"><div class="fl"></div><div class="fr"></div></div>
<?
}
unset($db_cat);
?>
<script type="text/javascript">

ddsmoothmenu.init({
	mainmenuid: "smoothmenu2", //Menu DIV id
	orientation: 'v', //Horizontal or vertical menu: Set to "h" or "v"
	classname: 'ddsmoothmenu-v', //class added to menu's outer DIV
	//customtheme: ["#804000", "#482400"],
	contentsource: "markup" //"markup" or ["container_id", "path_to_menu_file"]
})

</script>